
<div class="pad-10" >
	
	<div class="navigate">
		<h1>订单列表</h1>
  	</div>
  	
    <div class="explain-col">
    	开始:
    	<input type="text" class="Wdate tc" id="begin" name="begin" onclick="javascript:WdatePicker()" readonly="readonly" value="{$begin}" />
    	
    	&nbsp;结束:
    	<input type="text" class="Wdate tc" id="end" name="end" onclick="javascript:WdatePicker()" readonly="readonly" value="{$end}" />
    	
    	&nbsp;
    	订单:		
		<select id="order_status">
			<option value="{$all_status}" <if condition="$os eq $all_status">selected="selected"</if>>全部</option>
    		<volist name="order_status" id="o">
    		<option value="{$key}" <if condition="$os eq $key">selected="selected"</if>>{$o}</option>
    		</volist>
    	</select>

		&nbsp;
		支付:	
		<select id="pay_status">
			<option value="{$all_status}" <if condition="$ps eq $all_status">selected="selected"</if>>全部</option>
    		<volist name="pay_status" id="p">
    		<option value="{$key}" <if condition="$ps eq $key">selected="selected"</if>>{$p}</option>
    		</volist>
    	</select>
			
		&nbsp;
		配送:
		<select id="shipping_status">
			<option value="{$all_status}" <if condition="$ss eq $all_status">selected="selected"</if>>全部</option>
    		<volist name="shipping_status" id="s">
    		<option value="{$key}" <if condition="$ss eq $key">selected="selected"</if>>{$s}</option>
    		</volist>
    	</select>
			
    	
    	&nbsp;查询条件:
    	<select id="search">
    	<volist name="order_search" id="s">
    		<option value="{$s.item}" <if condition="$search eq $s['item']">selected="selected"</if>>{$s.name}</option>
    	</volist>
    	</select>
    	
        &nbsp;关键字 :
        <input name="keywords" id="keywords" type="text" class="input-text" size="25" value="{$keywords}" />
        <input type="submit" name="btnSearch" id="btnSearch" class="button" value="搜索" />
	</div>
  

			
    <form id="myform" name="myform" action="{:u('Items/delete')}" method="post">
    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="">订单编号</th>
                <th width="">会员名</th>
                <th width="">收货人</th>
                <th width="">手机</th>
                <th width="">地址</th>
                <th width="">订单总金额</th>
                <th width="">已支付金额</th>
                <th width="">下单时间</th>
				<th width="">配送时间</th>
                <th width="">订单状态</th>
                <th width="">操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="orders" id="o" >
        <tr>
        	<td align="center" title="{$o.postscript}">{$o.order_sn}</td>
            <td align="center">{$o.user_name}</td>
            <td align="center">{$o.consignee}</td>
            <td align="center">{$o.mobile_phone}</td>
            <td align="left">{$o.address}</td>
            <td align="right" title="商品总金额:{$o.goods_amount}&#10;运费:{$o.shipping_fee}&#10;包装费:{$o.pack_fee}&#10;-礼券:{$o.bonus}&#10;-折扣:{$o.discount}">
            	{$o.order_amount}
            </td>
            <td align="right">{$o.paid_amount}</td>
            <td align="center">{$o.created}</td>
			<td align="center">{$o.delivery_time}</td>
            <td align="center">
            	
            	<if condition="$o['order_status'] eq 0">
            		<span class="red">{$o.order_status_cn}</span>,
            	<elseif condition="$o['order_status'] eq 1" />
            		<span class="green">{$o.order_status_cn}</span>,
            	<else />
            		{$o.order_status_cn},
            	</if>


            	<if condition="$o['pay_status'] eq 0">
            		<span class="red">{$o.pay_status_cn}</span>,
            	<elseif condition="$o['pay_status'] eq 1" />
            		<span class="green">{$o.pay_status_cn}</span>,
            	<else />
            		{$o.pay_status_cn},
            	</if>
            	
            	
            	<if condition="$o['shipping_status'] eq 0">
            		<span class="red">{$o.shipping_status_cn}</span>,
            	<elseif condition="$o['shipping_status'] gt 1" />
            		<span class="green">{$o.shipping_status_cn}</span>,
            	<else />
            		{$o.shipping_status_cn}
            	</if>
            
            </td>
            <td align="center"><a class="blue" href="/index.php/Admin/Order/detail?id={$o.order_id}">编辑</a></td>
        </tr>
        </volist>
    	</tbody>
    </table>

    <div class="btn">
		<include file="Common:pager" />
    </div>

    </div>
    </form>
</div>

<script type="text/javascript" src="/Js/WdatePicker.js"></script>
<script type="text/javascript" src="/Js/adm/order/index.js"></script>